/*
 * @(#)UserError.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.exception;

/**
 * @author Web Platform Development Team
 */
public enum UserError {
    bloc("106");

    private String code;

    /**
     * Instantiates a new user error.
     *
     * @param code the code
     */
    UserError(String code) {
        this.code = code;
    }

    /**
     * Equals code.
     *
     * @param code the code
     * @return true, if successful
     */
    public boolean equalsCode(String code) {
        if (this.code.equals(code)) {
            return true;
        } else if (code.equals("106")) {
            return true;
        }

        return false;
    }
}
